Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class com.pacist.diamonds.ArrowButton

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--com.pacist.diamonds.DiamondCanvas
                    |
                    +--com.pacist.diamonds.DrawnButton
                          |
                          +--com.pacist.diamonds.ArrowButton

public class ArrowButton
extends DrawnButton
implements Direction
A component implementing a button containing an arrow which can be set to point in one of eight different directions.

See Also:
Serialized Form

Field Summary
int margin
          Default margin is 1.
int orientation
          Default orientation is Direction.
 
Fields inherited from class com.pacist.diamonds.DrawnButton
armed, behaviour, BUTTON, buttonListeners, flags, LABEL, mouseIn, NOTIFY_ARM, NOTIFY_DISARM, RADIO, SHADOW_ALL, SHADOW_BORDER, SHADOW_BOTTOM, SHADOW_LEFT, SHADOW_NONE, SHADOW_RIGHT, SHADOW_ROUNDED, SHADOW_TOP, shadowType, state, states, TOGGLE, tracking, TRISTATE, what
 
Fields inherited from class com.pacist.diamonds.DiamondCanvas
tipText
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
ArrowButton()
          Creates an ArrowButton with an orientation of UP.
ArrowButton(int orientation)
          Creates an ArrowButton with the specified orientation.
ArrowButton(java.lang.Object what, int orientation)
          Deprecated. Creates an ArrowButton with the specified orientation.
 
Method Summary
int getOrientation()
          Gets the orientation of the ArrowButton.
void paintButton(java.awt.Graphics g, boolean down)
          This method paints the ArrowButton given a Graphics context, and its state.
java.awt.Dimension preferredSize()
          Gets the preferred size of the ArrowButton.
void setOrientation(int orientation)
          Sets the specified orientation of the ArrowButton.
 
Methods inherited from class com.pacist.diamonds.DrawnButton
addActionListener, getBehaviour, getButtonListeners, getNotify, getShadowType, getState, inButton, isArmed, isDown, isSet, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paintButton, paint, processAction, removeActionListener, setArmed, setBehaviour, set, setEnabled, setNotify, setShadowType, setState, setStates
 
Methods inherited from class com.pacist.diamonds.DiamondCanvas
getTipText, mouseEnter, mouseExit, processMouseEvent, setTipText
 
Methods inherited from class java.awt.Canvas
addNotify, paint
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paint, paramString, postEvent, preferredSize, prepareImage, prepareImage, printAll, print, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

orientation

protected int orientation
Default orientation is Direction.UP.

margin

protected int margin
Default margin is 1.
Constructor Detail

ArrowButton

public ArrowButton()
Creates an ArrowButton with an orientation of UP.

ArrowButton

public ArrowButton(int orientation)
Creates an ArrowButton with the specified orientation.
Parameters:
orientation - The direction which the arrow will point in.
See Also:
Direction

ArrowButton

public ArrowButton(java.lang.Object what,
                   int orientation)
Deprecated. As of JDK version 1.1.
Creates an ArrowButton with the specified orientation.
Parameters:
what - A reference to an Object.
orientation - The direction which the arrow will point in.
See Also:
Direction
Method Detail

setOrientation

public void setOrientation(int orientation)
Sets the specified orientation of the ArrowButton.
Parameters:
orientation - Orientation of ArrowButton.
See Also:
Direction, getOrientation()

getOrientation

public int getOrientation()
Gets the orientation of the ArrowButton.
Returns:
an int value.
See Also:
Direction, setOrientation(int)

preferredSize

public java.awt.Dimension preferredSize()
Gets the preferred size of the ArrowButton.
Returns:
Dimension - object indicating this ArrowButton's preferred size.
Overrides:
preferredSize in class java.awt.Component
See Also:
java.awt.LayoutManager

paintButton

public void paintButton(java.awt.Graphics g,
                        boolean down)
This method paints the ArrowButton given a Graphics context, and its state.
Parameters:
g - The graphics context to use for painting.
down - Whether the ArrowButton is currently pushed down or not.
Overrides:
paintButton in class DrawnButton

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD